package com.orion.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.util.Date;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2021-08-27 21:22:25
 */
@SuppressWarnings("serial")
public class User extends Model<User> {

    private Integer id;

    private String name;

    private String account;

    private String password;

    private String tel;

    private Date birthday;

    private String email;

    private Integer status;

    @TableField(exist = false)
    @JsonIgnore
    private Date leBirthday;

    @TableField(exist = false)
    @JsonIgnore
    private Date geBirthday;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getLeBirthday() {
        return leBirthday;
    }

    public void setLeBirthday(Date leBirthday) {
        this.leBirthday = leBirthday;
    }

    public Date getGeBirthday() {
        return geBirthday;
    }

    public void setGeBirthday(Date geBirthday) {
        this.geBirthday = geBirthday;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", tel='" + tel + '\'' +
                ", birthday=" + birthday +
                ", email='" + email + '\'' +
                ", status=" + status +
                ", leBirthday=" + leBirthday +
                ", geBirthday=" + geBirthday +
                '}';
    }
}
